#pragma once

#include "Svn.h"
#include "htpasswdmain.h"

using namespace System;
using namespace System::Runtime::InteropServices;
using namespace System::Collections::Generic;
using namespace System::IO;

namespace IronSvn {

	[Serializable]
	public ref class Htpasswd
	{
	public:
		/// <summary>
		/// Creates the file if it does not already exist. If user is already specified
		/// in the file, then the password for that user is overwritten.
		/// </summary>
		static void SetPassword(String^ file, String^ user, String^ password);

		/// <summary>
		/// If the user is in the file, the line is removed from the file.
		/// </summary>
		static void RemoveUser(String^ file, String^ user);
	};
}
